using System.Collections.Generic;
using Sustainalytics.Entities;

namespace Sustainalytics.Portfolios.BL.Model
{
    public class SecurityModelFactory : ISecurityModelFactory
    {
      
        public  PortfolioSecurityModel Create(PortfolioDetails portfolio, ICollection<int> universes )
        {
            var portfoliodetails = new PortfolioSecurityModel(portfolio.Id, portfolio.PortfolioId,portfolio.DisplayInfo,portfolio.MatchedInfo, portfolio.CompanyId, portfolio.CompanyNameUrlFriendly, portfolio.SecurityId, portfolio.SecurityWeight);
            portfoliodetails.AttachFeatureUniverses(universes);
            return portfoliodetails;
        }

    }
}